package de.koller.zero.engine.commands;

import de.koller.zero.arch.CTTZNode;
import de.koller.zero.arch.ICommand;
import de.koller.zero.arch.ZNode;

public class AddNode implements ICommand {

	private final ZNode newNode;
	private final ZNode nodeToAddTo;

	public AddNode( ZNode nodeToAddTo, ZNode newNode ) {
		this.newNode = newNode;
		this.nodeToAddTo = nodeToAddTo;
	}
	
	@Override
	public void handleCommand( CTTZNode node ) {
		nodeToAddTo.addNode( newNode );
	}
	
	
	
}
